package com.zhen.aikan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.text.DecimalFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author lijiazhen
 * @since 2023-09-11
 */
@Data
@TableName("tb_danmu")
@ApiModel(value = "Danmu对象", description = "")
public class Danmu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private long id;

    @ApiModelProperty("影片id")
    private Integer vodId;

    @ApiModelProperty("位于第几集")
    private int vodEpisode;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("位于视频第几秒")
    private BigDecimal time;

    @ApiModelProperty("颜色")
    private String color;

    @ApiModelProperty("作者id")
    private String userId;

    @ApiModelProperty("弹幕类型")
    private int type;
}
